package com.tpo.base;

public class GridRequest {
	private int page;
	private int rows;
	private int from;
	private int to;
	
	
	
	private String sidx;
	private String sord;
	
	
	public int getPage() {
		return page;
	}
	public void setPage(int page) {
		this.page = page;
	}
	public int getRows() {
		return rows;
	}
	public void setRows(int rows) {
		this.rows = rows;
	}
	public String getSidx() {
		return sidx;
	}
	public void setSidx(String sidx) {
		this.sidx = sidx;
	}
	public String getSord() {
		return sord;
	}
	public void setSord(String sord) {
		this.sord = sord;
	}
	
	public int getFrom() {
		return from;
	}
	public void setFrom( ) {
		this.from = (this.page-1)*rows ;
	}
	public int getTo() {
		return to;
	}
	public void setTo( ) {
		this.to = (this.page)*rows;
	}
}
